<?php
//$url = $this->url('pager').'/page';
$url = $this->url('pager');

//$parameterGet = '';

$parameterGet = $this->Requesthelper();

if ($parameterGet != ""){
  $parameterGet = "?".$parameterGet;
}

?>

<?php if ($this->pageCount): ?>
<div class="paginationControl">
    <p>
      <?php if (isset($this->previous)): ?>
     <a class="first" href="<?php echo $url.'/1'; ?>">&lt;&lt; first&nbsp;&nbsp;</a>
     <a class="Previous" href="<?php echo $url.'/'.$this->previous.$parameterGet; ?>">&lt; prev&nbsp;&nbsp;</a>      
      <?php else: ?>
      <b><i>&lt;&lt; first&nbsp;&nbsp;</i></b>
      <b><i>&lt; prev&nbsp;&nbsp;</i></b>      
      <?php endif; ?>
      <?php foreach ($this->pagesInRange as $page): ?>
      <?php if ($page != $this->current): ?>
        <a class="nopage" href="<?php echo $url.'/'.$page.$parameterGet; ?>">
      <?php echo $page; ?>
      </a>&nbsp;
      <?php else: ?>
            <span class="nopage">
      <?php echo $page; ?>
    </span>
      &nbsp;
      <?php endif; ?>
      <?php endforeach; ?>
      <?php if (isset($this->next)): ?>
      <a class="next" href="<?php echo $url.'/'.$this->next.$parameterGet; ?>">&nbsp;next &gt;</a>
      <a class="next" href="<?php echo $url.'/'.$this->pageCount.$parameterGet; ?>">&nbsp;last &gt;&gt;</a>
      <?php else: ?>      	
	   <b><i>&nbsp;next &gt;&nbsp;</i></b>
	   <b><i>&nbsp;last &gt;&gt;&nbsp;</i></b>
      <?php endif; ?>
    </p>
</div>
<?php endif; ?>